import request from '@/utils/request'

// 列表
export const subjectsPageList = (data) =>{
  return request({
    url:'/acc_subjects/page-list',
    method:'post',
    data
  })
}

// 列表全部
export const accSubjectsGetAll = (params) =>{
  return request({
    url:'/acc_subjects/getBuiltSubjects',
    method:'get',
    params
  })
}

// 添加
export const subjectsAdd = (data) =>{
  return request({
    url:'/acc_subjects/add',
    method:'post',
    data
  })
}

// 编辑
export const subjectsModify = (data) =>{
  return request({
    url:'/acc_subjects/modify',
    method:'post',
    data
  })
}

// 删除
export const subjectsDel = (id) =>{
  return request({
    url:`/acc_subjects/delete/${id}`,
    method:'post'
  })
}
